package fei.zhou.springboot3.business.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 描述该类- JPA
 *
 * @author zhoufei
 * @class: UserController
 * @date 2021/1/13  16:50
 * @Verson 1.0 -2021/1/13  16:50
 * @see
 */
@RestController
public class UserController {

    @RequestMapping("/login")
    public Object login() {
        Map<String,String> map=new HashMap<>();
        map.put("userName", "小明");
        return map;
    }

    @RequestMapping("/getById")
    public Object getById() {
        Map<String,String> map=new HashMap<>();
        map.put("userName", "小明");
        return map;
    }
}